package com.yanqingying.mapper;
import com.github.pagehelper.Page;
import com.yanqingying.GetStudent;
import com.yanqingying.Student;
import com.yanqingying.StudentQueryParam;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface StudentMapper {
    Page<Student> list(StudentQueryParam studentQueryParam);

    void deletes(List<Integer> ids);

    void add(Student student);

    GetStudent gate(Integer id);

    void upDate(GetStudent student);

    void violation(Integer id, Integer score);
    @MapKey("name")
    List<Map> studentDegreeData();

    @MapKey("clazzList")
    List<Map> studentCountData();
}
